package de.baumann.browser.model

import de.baumann.browser.api.net.JieXiaoApiService
import de.baumann.browser.api.net.base.ApiBuilder
import de.baumann.browser.api.net.vo.Result
import de.baumann.browser.api.net.vo.duobao.JieXiao
import de.baumann.browser.rx.RxSchedulers
import io.reactivex.Observable

private val jieXiaoApiService: JieXiaoApiService = ApiBuilder.buildService(JieXiaoApiService::class.java)

fun getYiJieXiaoLieBiao():Observable<Result<List<JieXiao>>> {
    return jieXiaoApiService.getYiJieXiaoLieBiao().compose(RxSchedulers.ioMain())
}